package com.lyf.boot.modules.system.service.impl;

import com.lyf.boot.modules.system.dao.SysDeptDao;
import com.lyf.boot.modules.system.service.ISysDataScopeService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Luyufan
 * @date 2023/8/16 16:03
 */
@RequiredArgsConstructor
@Service("sdss")
public class SysDataScopeServiceImpl implements ISysDataScopeService {

    private final SysDeptDao sysDeptDao;


    @Override
    public List<Long> getAllSubDept(Long deptId) {
        return sysDeptDao.selectAllSubDeptId(deptId);
    }
}
